<div id="edit-title"><?php echo $update_type; ?></div>
	<div id="edit-form">
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<input type="hidden" name="rand" value="<?php echo $form['rand']; ?>" />
			<input type="hidden" name="user_id" value="<?php echo $form['user']['user_id']; ?>" />
			<div class="edit-name">账户名</div>
			<div class="edit-text"><input type="text" value="<?php echo $form['user']['username'] ?>" disabled /></div>
			<div class="edit-name">真实姓名</div>
			<div class="edit-text"><input type="text" value="<?php echo $form['user']['realname'] ?>" disabled /></div>
			<?php if ('base' == $update) { ?>
			<div class="edit-name">联系方式 <?php echo form_error('phone', '<span class="error">', '</span>'); ?></div>
			<div class="edit-text"><input type="text" name="phone" value="<?php echo isset($form['user']['phone'])?$form['user']['phone']:set_value('phone'); ?>" /></div>
			<?php } ?>
			<?php if ('secure' == $update) { ?>
			<?php if (1 != $cur_user['user_id'] || 1 == $form['user']['user_id']) { ?>
			<div class="edit-name">原密码 <?php echo form_error('pass_old', '<span class="error">', '</span>'); ?></div>
			<div class="edit-text"><input type="password" name="pass_old" value="" /></div>
			<?php } ?>
			<div class="edit-name">新密码 <?php echo form_error('pass_new', '<span class="error">', '</span>'); ?></div>
			<div class="edit-text"><input type="password" name="pass_new" value="" /></div>
			<div class="edit-name">重复密码 <?php echo form_error('passconf', '<span class="error">', '</span>'); ?></div>
			<div class="edit-text"><input type="password" name="passconf" value="" /></div>
			<?php } ?>
			<?php if ('rights' == $update) { ?>
			<div class="edit-name">权限</div>
			<?php
			foreach ($form['rights'] as $k => $v) {
			?>
			<div class="edit-right edit-checkbox"><input type="checkbox" name="right_ids[]" value="<?php echo $k; ?>" <?php if(in_array($k, $form['user']['rights'])){echo 'checked';} ?> /> <?php echo $v[1]; ?></div>
			<?php
			}
			?>
			<div class="clear"></div>
			<?php } ?>
			<div class="edit-submit"><input type="submit" value="编辑" /><?php if (isset($form['result'])) { ?><div class="edit-result"><?php echo $form['result']; ?></div><?php } ?></div>
		</form>
	</div>
	<div id="user-update-menu">
		<a id="user-update-base" href="<?php echo $site['root'] ?>user/update/base/<?php echo $form['user']['user_id'] ?>">基本信息</a>
		<a id="user-update-secure" href="<?php echo $site['root'] ?>user/update/secure/<?php echo $form['user']['user_id'] ?>">安全信息</a>
		<?php if ($cur_user['user_id'] == 1 && $form['user']['user_id'] != 1 ) { ?>
		<a id="user-update-rights" href="<?php echo $site['root'] ?>user/update/rights/<?php echo $form['user']['user_id'] ?>">权限信息</a>
		<?php } ?>
	</div>
</div>